package top.rish.utils.excel.convert;

import java.math.BigDecimal;

/**
 * 转为十进制小数
 */
public class ConvertToBigDecimal implements ExcelDataConvertTo<BigDecimal> {

    @Override
    public boolean required() {
        return false;
    }

    @Override
    public BigDecimal convert(String data ) throws Exception {

        return new BigDecimal(data);
    }
}
